import request from '@/utils/request'

export const bannerAdd = function(params){
  return request({
    url: '/banner/add',
    method: 'post',
    data: params,
  })
}

export const bannerList = function(params){
  return request({
    url: '/banner/list',
    method: 'get',
    params: params,
  })
}

export const bannerEditGet = function(params){
  return request({
    url: '/banner/edit',
    method: 'get',
    params: params,
  })
}
export const bannerEditPost = function(params){
  return request({
    url: '/banner/edit',
    method: 'post',
    data: params,
  })
}
export const bannerSetTitle = function(params){
  return request({
    url: '/banner/set_title',
    method: 'post',
    data: params,
  })
}

export const bannerDel = function(params){
  return request({
    url: '/banner/del',
    method: 'post',
    data: params,
  })
}

export const sort = function(params){
  return request({
    url: '/banner/sort',
    method: 'post',
    data: params,
  })
}




